package com.example.carbon.pojo.daoo;

import com.example.carbon.pojo.dto.DeviceInfoSearch;
import com.example.carbon.pojo.dto.PageLimit;
import lombok.Data;


@Data
public class DeviceSearch {
    private String name;
    private String code;
    private String type;
    private String born_start_date;
    private String born_end_date;
    private String born_id;//生产编号
    private String  manufacturer;//制造商
    private String state;
    private int start;
    private int item;
    public  DeviceSearch(DeviceInfoSearch deviceSearch, PageLimit pageLimit){
        this.name=deviceSearch.getName();
        this.code=deviceSearch.getCode();
        this.type=deviceSearch.getType();
        this.born_start_date=deviceSearch.getBorn_start_date();
        this.born_end_date=deviceSearch.getBorn_end_date();
        this.born_id=deviceSearch.getBorn_id();
        this.manufacturer=deviceSearch.getManufacturer();
        this.state=deviceSearch.getState();
        this.start=pageLimit.getStart();
        this.item=pageLimit.getItem();
    }
}
